import java.util.Random;

/**
 * Class that can generate and roll a dice
 * @author jmaria_iturbe
 *
 */
public class Dice {

	private int sides=0; 
	
	/**
	 * Method to generate a dice with given sides
	 * @param sides
	 * @param admitsZero
	 */
	public Dice (int sides){
		this.sides=sides;
	}
	
	/**
	 * Method to roll a dice
	 * @return
	 */
	public int rollDice (){
		Random random = new Random();
		return random.nextInt(sides);	
			
	}
	
	
	
	
	
	
	
	
}
